* fileio.c (Fcopy_file): Make fstat failure as serious as open failure.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Dec 2012 02:17:49 +0000 (18:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Dec 2012 02:17:49 +0000 (18:17 -0800)
commitee6a489eee894ba9cf5c87ee096803fd35d69e48
tree1dc133002948d069eee2ebb907eb3dcc8b998bb3
parentf95a7b6a0f67cac2b8dc042b56356b7a7c9104ea
* fileio.c (Fcopy_file): Make fstat failure as serious as open failure.

fstat shouldn't fail, and if it does fail copy-file should not proceed.
Remove unnecessary S_ISLNK test, as (contra the comments) this
function can't copy symlinks.  Improve quality of error message
when attempting to copy files that are neither regular files nor
directories.
src/ChangeLog
src/fileio.c